home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / include / dos / filesystem.h < prev   
C/C++ Source or Header  |  1996-09-13  |  2KB  |  78 lines

  1. #ifndef DOS_FILESYSTEM_H
  2. #define DOS_FILESYSTEM_H
  3. #include <exec/io.h>
  4.  
  5. struct IOFileSys
  6. {
  7.     struct IORequest IOFS; /* Standard I/O request */
  8.     LONG io_DosError;    /* Dos error code */
  9.     IPTR io_Args[4];    /* Array of Arguments (Ints and Pointers) */
  10. };
  11.  
  12. /*
  13.     Filesystem actions. Look into one of the filesystem sources for more
  14.     information on required parameters.
  15. */
  16. #define FSA_MOUNT        1
  17. #define FSA_DISMOUNT        2
  18. #define FSA_OPEN        3
  19. #define FSA_CLOSE        4
  20. #define FSA_READ        5
  21. #define FSA_WRITE        6
  22. #define FSA_SEEK        7
  23. #define FSA_SET_FILE_SIZE    8
  24. #define FSA_WAIT_CHAR        9
  25. #define FSA_FILE_MODE        10
  26. #define FSA_IS_INTERACTIVE    11
  27. #define FSA_SAME_LOCK        12
  28. #define FSA_EXAMINE        13
  29. #define FSA_EXAMINE_ALL     14
  30. #define FSA_EXAMINE_ALL_END    15
  31. #define FSA_OPEN_FILE        16
  32. #define FSA_CREATE_DIR        17
  33. #define FSA_CREATE_HARDLINK    18
  34. #define FSA_CREATE_SOFTLINK    19
  35. #define FSA_RENAME        20
  36. #define FSA_READ_SOFTLINK    21
  37. #define FSA_DELETE_OBJECT    22
  38. #define FSA_SET_COMMENT     23
  39. #define FSA_SET_PROTECT     24
  40. #define FSA_SET_OWNER        25
  41. #define FSA_SET_DATE        26
  42. #define FSA_IS_FILESYSTEM    27
  43. #define FSA_MORE_CACHE        28
  44. #define FSA_FORMAT        29
  45. #define FSA_MOUNT_MODE        30
  46. #if 0
  47. #define FSA_SERIALIZE_DISK    30
  48. #define FSA_FLUSH        31
  49. #define FSA_INHIBIT        32
  50. #define FSA_WRITE_PROTECT    33
  51. #define FSA_DISK_CHANGE     34
  52. #define FSA_ADD_NOTIFY        35
  53. #define FSA_REMOVE_NOTIFY    36
  54. #define FSA_DISK_INFO        37
  55. #define FSA_CHANGE_SIGNAL    38
  56. #define FSA_LOCK_RECORD     39
  57. #define FSA_UNLOCK_RECORD    40
  58. #endif
  59.  
  60. /* Modes for FSA_OPEN_FILE and FSA_FILE_MODE */
  61. #define FMF_LOCK    1 /* Lock exclusively */
  62. #define FMF_EXECUTE    2 /* open for executing */
  63. #define FMF_WRITE    4 /* open for writing */
  64. #define FMF_READ    8 /* open for reading */
  65. #define FMF_CREATE    16 /* create file if it doesn't exist */
  66. #define FMF_CLEAR    32 /* clear file on open */
  67. #define FMF_RAW     64 /* switch cooked to raw and vice versa */
  68.  
  69. /* Mount modes */
  70. #define MMF_READ    1 /* Mounted for reading */
  71. #define MMF_WRITE    2 /* Mounted for writing */
  72. #define MMF_READ_CACHE    4 /* Read cache enabled */
  73. #define MMF_WRITE_CACHE 8 /* Write cache enabled */
  74. #define MMF_OFFLINE    16 /* Filesystem doesn't use the device currently */
  75. #define MMF_LOCKED    32 /* Mount mode is password protected */
  76.  
  77. #endif
  78.